﻿using LuShanTea.Service.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.Service.ModelConfig
{
   public class IdNameConfig:EntityTypeConfiguration<IdName>
    {
        public IdNameConfig()
        {
            this.ToTable("T_IdNames");
            this.Property(e => e.Name).IsRequired().HasMaxLength(128);
            this.Property(e => e.TypeName).IsRequired().HasMaxLength(64);
        }

    }
}
